package com.zcxy.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 系统日志表
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-06-04
 */
@Data
@TableName("sys_log")
@ApiModel(value = "SysLog", description = "系统日志表实体对象")
public class SysLog {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "", required = false)
    @TableId(type = IdType.UUID)
    @Length(max = 50, message = "id 超出最大长度50")
    private String id;


    @ApiModelProperty(value = "描述", required = false)
    @Length(max = 255, message = "description 超出最大长度255")
    private String description;

    @ApiModelProperty(value = "异常详情", required = false)
    @Length(max = 65535, message = "exceptionDetail 超出最大长度65535")
    private String exceptionDetail;

    @ApiModelProperty(value = "日志类型", required = false)
    @Length(max = 255, message = "logType 超出最大长度255")
    private String logType;

    @ApiModelProperty(value = "方法", required = false)
    @Length(max = 255, message = "method 超出最大长度255")
    private String method;

    @ApiModelProperty(value = "参数", required = false)
    @Length(max = 65535, message = "params 超出最大长度65535")
    private String params;

    @ApiModelProperty(value = "ip", required = false)
    @Length(max = 255, message = "requestIp 超出最大长度255")
    private String requestIp;

    @ApiModelProperty(value = "time", required = false)
    private Long time;

    @ApiModelProperty(value = "用户名", required = false)
    @Length(max = 255, message = "username 超出最大长度255")
    private String username;

    @ApiModelProperty(value = "url", required = false)
    @Length(max = 255, message = "address 超出最大长度255")
    private String address;

    @ApiModelProperty(value = "浏览器", required = false)
    @Length(max = 255, message = "browser 超出最大长度255")
    private String browser;

}
